package com.lhl.jwt;

import com.lhl.jwt.domain.bo.WxExtBO;
import io.swagger.annotations.Api;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @className: com.lhl.jwt.JwtUser
 * @description: JwtUser
 * @author: king
 * @date: 2020-12-21 10:52
 **/
@Api(tags = "JwtUser", produces = "JwtUser")
public class JwtUser extends User {

    private static final long serialVersionUID = 1L;

    private String salt;

    private String userId;

    private WxExtBO wxExtBO;

    public JwtUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public WxExtBO getWxExtBO() {
        return wxExtBO;
    }

    public void setWxExtBO(WxExtBO wxExtBO) {
        this.wxExtBO = wxExtBO;
    }
}

